//
//  NewTableViewCell.m
//  jizhiyunduan
//
//  Created by 鞠超 on 16/8/2.
//  Copyright © 2016年 JC. All rights reserved.
//

#import "NewTableViewCell.h"

@implementation NewTableViewCell

- (instancetype )initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    
    if(self)
    {
        [self p_setupView];
    }
    
    return self;
}

- (void )p_setupView
{
    //
    self.image_pic = [[UIImageView alloc] init];
    self.image_pic.image = [UIImage imageNamed:@"banner2.png"];
    [self.contentView addSubview:self.image_pic];
    
    self.view_line = [[UIView alloc] init];
    self.view_line.backgroundColor = [UIColor groupTableViewBackgroundColor];
    [self.contentView addSubview:self.view_line];
    
    self.title = [[UITextView alloc] init];
    self.title.text = @"山东智顺网络科技有限公司信息、山东智顺网络科技有限公司信息";
    self.title.font = [UIFont systemFontOfSize:17];
    self.title.userInteractionEnabled = NO;
//    self.title.backgroundColor = [UIColor orangeColor];
    [self.contentView addSubview:self.title];
    
    self.biaoqian = [[UILabel alloc] init];
    self.biaoqian.textColor = navi_bar_bg_color;
    self.biaoqian.font = [UIFont systemFontOfSize:12];
    self.biaoqian.text = @"智顺";
    [self.contentView addSubview:self.biaoqian];
}

- (void )layoutSubviews
{
    [super layoutSubviews];
    
    self.image_pic.frame = CGRectMake(SCREEN_WIDTH - 10 - 100, 10, 100, 80);
    
    self.view_line.frame = CGRectMake(10, 99, SCREEN_WIDTH - 20, 1);
    
    self.title.frame = CGRectMake(10, 2, SCREEN_WIDTH - 130, 70);
    
    self.biaoqian.frame = CGRectMake(15, 100 - 23, SCREEN_WIDTH - 20, 15);
}

@end
